/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gui;

/**
 *
 * @author Strauzen
 */
public class VentanaConsultaTipo extends javax.swing.JFrame {

    Ventana1 v1;
    
    /**
     * Creates new form VentanaConsultaTipo
     */
    public VentanaConsultaTipo(Ventana1 v1) {
        this.v1 = v1;
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jButton_vctSimple = new javax.swing.JButton();
        jButton_vctAvanzada = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setResizable(false);

        jButton_vctSimple.setText("Consulta Simple");
        jButton_vctSimple.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton_vctSimpleMouseClicked(evt);
            }
        });

        jButton_vctAvanzada.setText("Consulta Avanzada");
        jButton_vctAvanzada.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton_vctAvanzadaMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jButton_vctSimple)
                .addGap(18, 18, 18)
                .addComponent(jButton_vctAvanzada)
                .addGap(0, 0, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton_vctSimple)
                    .addComponent(jButton_vctAvanzada))
                .addGap(0, 0, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton_vctSimpleMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton_vctSimpleMouseClicked
        // TODO add your handling code here:
        VentanaConsultaSimple vcs = new VentanaConsultaSimple(v1);
        vcs.setVisible(true);
        this.setVisible(false);
        this.dispose();
    }//GEN-LAST:event_jButton_vctSimpleMouseClicked

    private void jButton_vctAvanzadaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton_vctAvanzadaMouseClicked
        // TODO add your handling code here:
        VentanaConsultaAvanzada vca = new VentanaConsultaAvanzada(v1);
        vca.setVisible(true);
        this.setVisible(false);
        this.dispose();
    }//GEN-LAST:event_jButton_vctAvanzadaMouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton_vctAvanzada;
    private javax.swing.JButton jButton_vctSimple;
    private javax.swing.JPanel jPanel1;
    // End of variables declaration//GEN-END:variables
}
